package cn.ecnu.constant;

import java.util.UUID;

public class ResponseStatus {

    // 登录错误
    public static int LOGIN_ERROR = 201;

    // 注册错误
    public static int REGISTER_ERROR = 202;

    // 验证码错误
    public static int CODE_ERROR = 203;

    // 验证码多次请求
    public static int CODE_REPEAT = 204;

    // 服务器内部错误
    public static int INTERNAL_ERROR = 500;

    public static String uuidGenerator() {
        return UUID.randomUUID().toString().replace("-", "").substring(0, 6);
    }
}
